package assignment;

import java.util.HashMap;
import java.util.Map;

public class BeanDefinition {
    //对应Spring配置文件中bean的id
    private String id;
    //对应Spring配置文件中bean的class
    private String class_;
    //map中的每个元素对应bean中的一个property
    private final Map<String, String> properties = new HashMap<>();

    public BeanDefinition(){
    }

    public BeanDefinition(String id, String class_) {
        this.id = id;
        this.class_ = class_;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setClass_(String class_) {
        this.class_ = class_;
    }

    public String getId() {
        return id;
    }

    public String getClass_() {
        return class_;
    }

    public Map<String, String> getProperties(){
        return properties;
    }
}
